cisco-cvp-ux icon

cisco-cvp-ux

(0 reviews)

Get ResourceDetails - TMF639 GET

Request

URL

http://[host]:[port]/cisco-cvp-ux/v1/{businessId}/resource

URI Parameter

NameTypeM/ODescription
businessIdstringMBusiness unit identifier. Can be one of: "JM", "PA", "PR", "CL", "CR"

Headers

namevaluedescriptionrequired
X-Correlation-IDstringThis is a unique identifier for the current call chain that can be used to tie together log entries on multiple layers.
Example: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b
M
lobstringIt defines the Line of Business . Example : PREPAIDM
channelIdstringChannel to identify the business group. Eg:ivrB2CO

Security Headers

NameTypeM/ODescription
client_idstringMClient Id value for Client Id Enforcement policy. Environment Specific Value. Eg: 6f0ed16a7b494d76b2d60e05bc3b3332
client_secretstringMClient secret value for Client Id Enforcement policy. Environment Specific Value, eg: e4CD4D43449846aA9D8Cb9c43fAd324a

Response

Possible success response

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

{
    "id": "000100000000040439",
    "@type": "PhysicalResource",
    "name": "IMEI Number",
    "resourceCharacteristic": [
        {
            "value": "500020",
            "name": "activationCode"
        }
    ],
    "resourceSpecification": {
        "id": "000000000000117052",
        "name": "MobileDeviceSKU",
        "@referredType": "PhysicalResourceSpecification"
    },
    "resourceRelationship": [
        {
            "relationshipType": "paried",
            "resource": {
                "id": "10345267",
                "name": "ICCID Number",
                "@type": "PhysicalResource",
                "resourceSpecification": {
                    "id": "000000000000117088",
                    "name": "SIMCardSKU",
                    "@referredType": "PhysicalResourceSpecification"
                }
            }
        }
    ]
}
Definitions
nametypedescriptionrequired
administrativeStatestringA resource administrative state type (ResourceAdministrativeStateType). Tracks the administrative state of the resource, such as locked, unlocked, shutdown and so on.N
attachmentobject arrayA list of attachment ref or values (AttachmentRefOrValue [*]). the attribute type,schemaLocation and referredType are related to the contained entity and not to AttchmentRefOrValue itself.N
attachment.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
attachment.descriptionstringA narrative text describing the content of the attachment.N
attachment.hrefstringURI for this Attachment.N
attachment.idstringUnique identifier for this particular attachment.N
attachment.urlstringUniform Resource Locator, is a web page address (a subset of URI)N
attachment.namestringThe name of the attachment.N
attachment.attachmentTypestringAttachment type such as video, picture.N
attachment.contentbase64A base 6 4 (Base64). The actual contents of the attachment object, if embedded, encoded as base64.N
attachment.mimeTypestringAttachment mime type such as extension file for video, picture and documentN
attachment.sizeobjectA quantity (Quantity). The size of the attachment.N
attachment.size.amountfloatNumeric value in a given unit.N
attachment.size.unitsstringunitsN
attachment.validForobjectThe period of time for which the attachment is valid.N
attachment.validFor.startDateTimedateTimeStart of the time period, using IETC-RFC-3339 formatN
attachment.validFor.endDateTimedateTimeEnd of the time period, using IETC-RFC-3339 formatN
categorystringCategory of the concrete resource. e.g Gold, Silver for MSISDN concrete resourceN
descriptionstringfree-text description of the resourceN
endOperatingDatedateTimeThe date till the resource is operating.N
hrefstringThe URI for the object itself.N
idstringIdentifier of an instance of the resource. Required to be unique within the resource type. Used in URIs as the identifier for specific instances of a typeN
namestringA string used to give a name to the resource.N
valuestringThe value of the logical resource. E.g '0746712345' for MSISDN'sY
noteobject arrayA list of notes (Note [*]) Extra information about a given entity.N
note.idstringIdentifier of the note within its containing entity (may or may not be globally unique, depending on provider implementation).N
note.authorstringAuthor of the note.N
note.datedateTypeDate of the note.N
note.textstringText of the note.N
operationalStatestringA resource operational state type (ResourceOperationalStateType). Tracks the operational state of the resource, such as enable, disable and so on.Y
placeobjectA related place ref or value (RelatedPlaceRefOrValue). Related Entity reference. A related place defines a place described by reference or by value linked to a specific entity. The polymorphic attributes @type, @schemaLocation & @referredType are related to the place entity and not the RelatedPlaceRefOrValue class itself.N
place.iddescription: Unique identifier of the placeN
place.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
place.hrefstringReference of the related entity.N
place.namestringName of the related entity.N
place.rolestringRole playedN
relatedPartyobject arrayA list of related parties (RelatedParty [*]). Related Entity reference. A related party defines party or party role linked to a specific entityN
relatedParty.idstringUnique identifier of a related entityN
relatedParty.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
relatedParty.hrefstringReference of the related entity.N
relatedParty.namestringName of the related entity.N
relatedParty.rolestringRole played by the related party.N
resourceCharacteristicobject arrayA list of characteristics (Characteristic [*]). Describes a given characteristic of an object or entity through a name/value pair.N
resourceCharacteristic.characteristicRelationshipobject arrayA list of characteristic relationships (CharacteristicRelationship [*]). Another Characteristic that is related to the current Characteristic;N
resourceCharacteristic.characteristicRelationship.idstringUnique identifier of the characteristic.N
resourceCharacteristic.characteristicRelationship.relationshipTypestringThe type of relationship.N
resourceCharacteristic.idstringUnique identifier of the characteristicN
resourceCharacteristic.namestringName of the characteristicN
resourceCharacteristic.valueanyThe value of the characteristicN
resourceCharacteristic.valueTypestringData type of the value of the characteristicN
resourceRelationshiparrayA list of resource relationships (ResourceRelationship [*]). Linked resources to the one instantiate, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (e.g. an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be usefuN
resourceRelationship.relationshipTypestringA string. Type of the resource relationship, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (e.g. an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful.N
resourceRelationship.resourceobjectA resource ref or value (ResourceRefOrValue). A resource to be created defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the product entity and not the RelatedProductRefOrValue class itself.N
resourceSpecificationobjectA resource specification reference (ResourceSpecificationRef). The ResourceSpecification is required to realize a ProductSpecification.N
resourceSpecification.idstringreference id to the target constraint.N
resourceSpecification.namestringName given to the constraint.N
resourceSpecification.versionstringconstraint version.N
resourceSpecification.@referredTypestringThe actual type of the target instance when needed for disambiguation.N
resourceStatusstringA resource status type (ResourceStatusType). Tracks the resource status of the resource, such as standby, alarm, available, reserved, suspended and so on.N
resourceVersionstringA field that identifies the specific version of an instance of a resourceN
startOperatingDatedateTypeA date time( DateTime). The date from which the resource is operating.N
usageStatestringA resource usage state type (ResourceUsageStateType). Tracks the usage state of the resource, such as idle, active, busy and so on.N
resourceRelationship.resource.idstringUnique identifier of an instance of the resourceN
resourceRelationship.resource.namestringName of the resourceN
@typestringWhen sub-classing, this defines the sub-class Extensible nameN
@baseTypestringWhen sub-classing, this defines the super-classN

Possible response errors

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
    "errors": [
        {
            "code": 400,
            "message": "APIKIT:BAD_REQUEST",
            "description": "Invalid value 'M' for uri parameter businessId. M is not a valid enum value"
        }
    ]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
    }]
}
[ 403 ]

Forbidden - Indicates that the server understood the request but refuses to fulfill it. If authentication credentials were provided in the request, the server considers them insufficient to grant access. The client SHOULD NOT automatically repeat the request with the same credentials. The client MAY repeat the request with new or different credentials.

[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
    "errors": [
        {
            "code": 404,
            "message": "APIKIT:NOT_FOUND",
            "description": "/PR/resource1"
        }
    ]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [
        {
            "code": 405,
            "message": "APIKIT:METHOD_NOT_ALLOWED",
            "description": "HTTP Method post not allowed for : /{businessId}/resource"
        }
    ]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
"errors" : [{
"code" : 500,
"message" : "The request failed due to an internal error.",
"description": "error description"
}]
}
[ 501 ]

Check for the other BU Flows, if not implemented then throw a standard error message as below.

{
    "errors": [
        {
            "code": 501,
            "message": "NOT IMPLEMENTED",
            "description": "Operation GET /{businessId}/resource for Business Id: PA not implemented."
        }
    ]
}
[ 503 ]

Service Unavailable

    {
    "errors": [
        {
            "code": 503,
            "message": "HTTP:SERVICE_UNAVAILABLE",
            "description": "HTTP GET on resource 'http://0.0.0.0:9091//tmf-api/resource-inventory-management-biz/v1/{businessId}/resource' failed: service unavailable (503)."
        }
    ]
}

Reviews